import request from "@/utils/request";

// 查询班级分页数据
export const queryClazzPageApi = (params) => request.get("/clazzs", { params });

// 查询全部班级
export const queryClazzAllApi = () => request.get("/clazzs/list");

// 新增班级
export const addClazzApi = (clazz) => request.post("/clazzs", clazz);

// 根据ID查询班级
export const queryClazzByIdApi = (id) => request.get(`/clazzs/${id}`);

// 修改班级
export const updateClazzApi = (clazz) => request.put("/clazzs", clazz);

// 删除班级
export const deleteClazzApi = (id) => request.delete(`/clazzs/${id}`); 